home *** CD-ROM | disk | FTP | other *** search
/ SunSoft Catalyst CDWARE 1996 May to August / Catalyst CDWARE 1996 May to August.iso / .products / .bin / update.applets.pl < prev    next >
Perl Script  |  1996-03-25  |  35KB  |  1,057 lines

  1. #!/usr/lab/bin/perl 
  2. # ------------------------------------------------------------
  3.  
  4. # update.pl, by Jean-Pierre Girard (jpg@corrado.sun.com)
  5. # This allows the user to edit or create the _info file
  6. # necessary for the CDware.
  7. # version 1.0, Feb, 20 1996
  8. # ------------------------------------------------------------
  9.  
  10. # Bugs and other fixes
  11.  
  12. # ------------------------------------------------------------
  13. %Special = (
  14. "internet", "596,200"
  15. ,"Sun", "596,167"
  16. );
  17.  
  18. %GifImage = (
  19. "archive", "software.gif"
  20. ,"business", "software.gif"
  21. , "cad_cae", "software.gif"
  22. , "catalogs", "software.gif"
  23. , "client_server", "software.gif"
  24. , "desktop_apps", "software.gif"
  25. , "doc_mgt", "software.gif"
  26. , "epubs", "software.gif"
  27. , "graphics_imaging", "software.gif"
  28. , "info_mgt", "software.gif"
  29. , "multimedia", "software.gif"
  30. , "networking", "software.gif"
  31. , "security", "software.gif"
  32. , "sw_eng", "software.gif"
  33. , "sys_admin", "software.gif"
  34. , "telco", "software.gif"
  35. , "training", "software.gif"
  36. , "Hardware", "hardware.gif"
  37. , "Services", "services.gif"
  38. , "internet", "internet.gif"
  39. , "Sun", "sunban.gif"
  40. #, "Info", "software.gif"
  41. , "companies", "companies.gif"
  42. );
  43.  
  44. %Categories = (
  45. "archive", "Archiving, Storage Management & Backup Solutions"
  46. ,"business", "Business Solutions"
  47. , "cad_cae", "CAD/CAE"
  48. , "catalogs", "Catalogs"
  49. , "client_server", "Client/Server Solutions"
  50. , "desktop_apps", "Desktop Applications"
  51. , "doc_mgt", "Document Management"
  52. , "epubs", "Electronic Publishing"
  53. , "graphics_imaging", "Graphics and Imaging"
  54. , "info_mgt", "Information Management"
  55. , "internet", "Internet"
  56. , "multimedia", "Multimedia"
  57. , "networking", "Networking"
  58. , "security", "Security"
  59. , "sw_eng", "Software Engineering"
  60. , "sys_admin", "System Administration"
  61. , "telco", "Telecommunications"
  62. , "training", "Training"
  63. , "Hardware", ""
  64. , "Services", ""
  65. , "internet", "Internet"
  66. , "Sun", ""
  67. #, "Info", "Info"
  68. , "companies", ""
  69. );
  70.  
  71. ##############################################################################
  72. # PrintHtml:
  73. ##############################################################################
  74. sub PrintHtml
  75. {
  76.     local($StrHtml1, $Str, $StrHtml2) = @_;
  77.     
  78.     if ($HTML_FORMAT eq "true") {
  79.         print STDOUT $StrHtml1;
  80.     }
  81.  
  82.     print STDOUT $Str;
  83.  
  84.     if ($HTML_FORMAT eq "true") {
  85.         print STDOUT $StrHtml2;
  86.     }
  87. }
  88. ##############################################################################
  89. # CheckLinks:
  90. ##############################################################################
  91. sub CheckLinks
  92. {
  93.     &PrintHtml("<BR>", "\nChecking links1...\n", "<BR>");
  94.     $ListDir = `cd $PRODUCTS_DIR; ls`;
  95.     $ListDir =~ s/gui|CDware|DEV|hotjava|tempjas|temp//g;
  96.     #$ListDir =~ s/\n+/ /g;
  97.     @dirfields = split(/\s+/, $ListDir);
  98.     foreach $Dir (@dirfields) {
  99.         if ($Dir =~ /CDware|DEV/) {
  100.             next;
  101.         }
  102.         &PrintHtml("<DD><DD>",  "\t\tTesting $Dir ...\n", "<BR>");
  103.         $ListFiles = `find "$PRODUCTS_DIR/$Dir" -name "*.html" -print`;
  104.         $ListFiles .= `find "$PRODUCTS_DIR/$Dir" -name "*.htm" -print`;
  105.         #$ListDir =~ s/gui|CDware|DEV|hotjava|tempjas|temp//g;
  106.         @filefields = split(/\s+/, $ListFiles);
  107.         foreach $File (@filefields) {
  108.             if ($File =~ /CDware.(frame|head).html/) {
  109.                 next;
  110.             }
  111.             #&PrintHtml("<DD><DD>",  "\t\tTesting $File ...\n", "<BR>");
  112.             if (open (HTMLFILE, $File)) {
  113.                 while(<HTMLFILE>) {
  114.                     chop;
  115.                     $Line = $_;
  116.                     $LinePrint = $Line;
  117.                     if ($HTML_FORMAT eq "true") {
  118.                         $LinePrint =~ s/</</g;
  119.                         $LinePrint =~ s/>/>/g;
  120.                     }
  121.                     if ($Line =~ /HREF/i) {
  122.                         $Ref = $Line;
  123.                         $Ref =~ s/.*HREF *= *"?([^" >#]*)[" >#].*/\1/i;
  124.                         if ($Ref =~ /HrefButtonArea/) {
  125.                             $Ref =~ s/.*HrefButtonArea,\d+,\d+,\d+,\d+,([^" >]*)/\1/;
  126.                         }
  127.                         #print "\t$Line\n\t->$Ref\n";
  128.                         if ($Ref eq $Line) {
  129.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  130.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  131.                         }
  132.                         if ($Ref eq "" && $Line !~ /HREF *= *"?\#/i) {
  133.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  134.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  135.                         }
  136.                         if ($Ref !~ /mailto:|ftp:|http:\/\/|req_more_info.pl/i || $Ref =~ /http:\/\/localhost/) {
  137.                         #if ($Ref !~ /mailto:|ftp:|http:\/\/[^l]|req_more_info.pl/i) {
  138.                             #print "->$Ref\n";
  139.                             $ShortDir = $File;
  140.                             $ShortDir =~ s?(.*\/)[^/]*$?\1?;
  141.                             if ($Ref =~ /http:\/\/localhost/i) {
  142.                                 $Ref =~ s?http://localhost:7999/(.*)$?$PRODUCTS_DIR/\1?;
  143.                                 #print "\t\tin http:$ShortDir/$Ref from $File\n";
  144.                                 if ($Ref !~ /cgi-bin/ && ! -s "$ShortDir/$Ref") {
  145.                                     &PrintHtml("<B>", "ERROR: Missing link $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  146.                                 }
  147.                             } elsif ($Ref =~ /file:/i) {
  148.                                 $Ref =~ s?file:///tmp/httpd/.products/(.*)$?$PRODUCTS_DIR/\1?;
  149.                                 #print "\t\tin file: $Ref from $File\n";
  150.                                 unless (-s "$Ref") {
  151.                                     &PrintHtml("<B>", "ERROR: Missing link $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  152.                                 }
  153.                             } else {
  154.                                 #print "\t\tin else: $ShortDir/$Ref from $File\n";
  155.                                 if ($Ref !~ /^#/) {
  156.                                     unless ($Ref !~ /^#/ && -s "$ShortDir/$Ref") {
  157.                                         &PrintHtml("<B>", "ERROR: Missing link $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  158.                                     }
  159.                                 }
  160.                             }
  161.                         }
  162.                         
  163.                     }
  164.                     if ($Line =~ /<IMG/i) {
  165.                         $Ref = $Line;
  166.                         $Ref =~ s/.*IMG.*SRC *= *"?([^" >]*)[" >].*/\1/i;
  167.                         #print "\t$Line\n\t->$Ref\n";
  168.                         if ($Ref eq $Line) {
  169.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  170.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  171.                         }
  172.                         if ($Ref eq "") {
  173.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  174.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  175.                         }
  176.                         #print "->$Ref\n";
  177.                         $ShortDir = $File;
  178.                         $ShortDir =~ s?(.*\/)[^/]*$?\1?;
  179.                         if ($Ref =~ /http:\/\/localhost/i) {
  180.                             $Ref =~ s?http://localhost:7999/(.*)$?$PRODUCTS_DIR/\1?;
  181.                             #print "\t\tin http:$ShortDir/$Ref from $File\n";
  182.                             if ($Ref !~ /cgi-bin/ && ! -s "$ShortDir/$Ref") {
  183.                                 &PrintHtml("<B>", "ERROR: Missing image $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  184.                             }
  185.                         } elsif ($Ref =~ /file:/i) {
  186.                             $Ref =~ s?file:///tmp/httpd/.products/(.*)$?$PRODUCTS_DIR/\1?;
  187.                             #print "\t\tin file: $Ref from $File\n";
  188.                             unless (-s "$Ref") {
  189.                                 &PrintHtml("<B>", "ERROR: Missing image $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  190.                             }
  191.                         } else {
  192.                             #print "\t\tin else: $ShortDir/$Ref from $File\n";
  193.                             if ($Ref !~ /^#/) {
  194.                                 unless ($Ref !~ /^#/ && -s "$ShortDir/$Ref") {
  195.                                     &PrintHtml("<B>", "ERROR: Missing image $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  196.                                 }
  197.                             }
  198.                         }
  199.                         
  200.                     }
  201.                     #$Line =~ tr/
  202.                 }
  203.                 close(HTMLFILE);
  204.             } else {
  205.                 &PrintHtml("<B>",  "ERROR: $File cannot be open\n", "</B><BR>");
  206.             }
  207.         }
  208.     }
  209. }
  210. ##############################################################################
  211. # CheckFiles:
  212. ##############################################################################
  213. sub CheckFiles
  214. {
  215.     $ListDir = `cd $PRODUCTS_DIR; ls`;
  216.     $ListDir =~ s/gui|CDware|DEV|hotjava|tempjas|temp//g;
  217.     #$ListDir =~ s/\n+/ /g;
  218.     @filefields = split(/\s+/, $ListDir);
  219.     foreach $Dir (@filefields) {
  220.         unless (-s "$PRODUCTS_DIR/$Dir/_info") {
  221.             &PrintHtml("", "WARNING: _info file missing in $Dir\n", "<BR>");
  222.         }
  223.     }
  224.     #print $ListDir;
  225. }
  226.  
  227. ##############################################################################
  228. # InitCompInfo:
  229. ##############################################################################
  230. sub InitCompInfo
  231. {
  232.     $ListDir = `ls $PRODUCTS_DIR/*/_info`;
  233.     #print "ls $PRODUCTS_DIR/*/_info";
  234.  
  235.     @filefields = split(/\s+/, $ListDir);
  236.     #print $filefields;
  237.     foreach $INFOFILENAME (@filefields) {
  238.         $ShortDir = $INFOFILENAME;
  239.         $ShortDir =~ s?.*/([^/]*)/_info$?\1?;
  240.         if (-s $INFOFILENAME && open (INFOFILE, $INFOFILENAME)) {
  241.             if ($REPORT ne "true") {
  242.                 #&PrintHtml("<DD><DD>", "\t\tReading $INFOFILENAME\n", "<BR>");
  243.             }
  244.     
  245.                     while (<INFOFILE>) {
  246.                         $Line = $_;
  247.                 unless ($Line =~ /^[     ]*$/ || $Line =~ /^#/) {
  248.                     last;
  249.                 }
  250.             }
  251.                     ($Companies{$ShortDir}, $Description{$ShortDir}, $Platform{$ShortDir}, $ChosenCat{$ShortDir}, $WebSite{$ShortDir}, $Email{$ShortDir}, $HomePageName{$ShortDir}) = split(/\^/, $Line);
  252.  
  253.             if ($CHECK eq "true") {
  254.                 $_ = $Line;
  255.                 #print "Line=$Line\n";
  256.                 $count = tr/^//;
  257.                 #print "$_: $count\n";
  258.                 if ($count != 7) {
  259.                     &PrintHtml("<B>", "ERROR: Not the correct number of parameters in the first line of $INFOFILENAME\n", "<BR>");
  260.                 }
  261.                 if ($Platform{$ShortDir} =~ /demo|testdrive|install/ && ! -d "$PRODUCTS_DIR/$ShortDir/_install") {
  262.                     &PrintHtml("<B>", "ERROR: Missing _install directory in $ShortDir\n", "<BR>");
  263.                 }
  264.                 if ($HomePageName{$ShortDir} eq "") {
  265.                     &PrintHtml("<B>", "ERROR: Missing Home page name in $ShortDir\n", "<BR>");
  266.                 } else {
  267.                     unless (-s "$PRODUCTS_DIR/$ShortDir/$HomePageName{$ShortDir}") {
  268.                         &PrintHtml("<B>", "ERROR: $HomePageName{$ShortDir} file missing in $ShortDir\n", "<BR>");
  269.                     }
  270.                 }
  271.             }
  272.             $ProdNum = 1;
  273.                     while (<INFOFILE>) {
  274.                 if ($_ =~ /^[     ]*$/ || $_ =~ /^#/) {
  275.                     next;
  276.                 }
  277.                 if ($CHECK eq "true") {
  278.                     unless ($_ =~ /^.*[^     ].*\^$/) {
  279.                         chop($_);
  280.                         &PrintHtml("<B>", "ERROR: Wrong line in $INFOFILENAME: \"$_\"\n", "<BR>");
  281.                     }
  282.                 }
  283.                             $Product=$_;
  284.                             chop($Product);
  285.                             chop($Product);
  286.                             $Products{$ShortDir . $ProdNum} = $Product;
  287.                 #print "jp = $Product\n";
  288.                 $ProdNum++;
  289.                     }
  290.             close(INFOFILE);
  291.             } else {
  292.                     &PrintHtml("", "Can't open $INFOFILENAME\n", "<BR>");
  293.         }
  294.     }
  295.     #foreach $ShortDir (sort keys(%Companies)) {
  296.         #print "$Companies{$ShortDir}, $Description{$ShortDir}, $Platform{$ShortDir}, $ChosenCat{$ShortDir}, $WebSite{$ShortDir}, $Email{$ShortDir}, $HomePageName{$ShortDir}\n";
  297.     #}
  298.     #%RevComp = reverse %Companies;
  299.     #if (@RevComp != @Companies) {
  300.         #print "WARNING: two directory with the same company name->possible problem!\n";
  301.     #}
  302.     %RevProd = reverse %Products;
  303.     if (@RevProd != @Products) {
  304.         &PrintHtml("", "WARNING: two products with the same name->possible problem!\n", "<BR>");
  305.     }
  306.     #print @Products;
  307.     #foreach $ShortDir (sort keys(%Products)) {
  308.         #print "$ShortDir, $Products{$ShortDir}\n";
  309.     #}
  310.     #foreach $ShortDir (sort keys(%RevProd)) {
  311.         #print "$ShortDir, $RevProd{$ShortDir}\n";
  312.     #}
  313.     #foreach $ShortDir (sort keys(%RevComp)) {
  314.         #print "$RevComp{ShortDir}\n";
  315.     #}
  316.     #print %RevComp;
  317. }
  318.  
  319. sub FilteredSort
  320. {
  321.     ($al = $a) =~ tr/A-Z/a-z/;
  322.     $al =~ s/^the //;
  323.     $al =~ s/^[     ]*//;
  324.  
  325.     ($bl = $b) =~ tr/A-Z/a-z/;
  326.     $bl =~ s/^the //;
  327.     $bl =~ s/^[     ]*//;
  328.  
  329.     $al cmp $bl;
  330. }
  331. sub FilteredSortComp
  332. {
  333.     $al = $Companies{$a};
  334.     ($al = $a) =~ tr/A-Z/a-z/;
  335.     $al =~ s/^the //;
  336.     $al =~ s/^[     ]*//;
  337.  
  338.     $bl = $Companies{$b};
  339.     ($bl = $b) =~ tr/A-Z/a-z/;
  340.     $bl =~ s/^the //;
  341.     $bl =~ s/^[     ]*//;
  342.  
  343.     #print "$al =? $bl\n";
  344.     $al cmp $bl;
  345. }
  346.  
  347. ##############################################################################
  348. # CreateSoft
  349. ##############################################################################
  350. sub CreateSoft
  351. {
  352.     &PrintHtml("<BR>", "\nCreating Software page...\n", "<BR>");
  353.     $SOFTFILENAME = "$CAT_DIR/Software.html";
  354.     $SOFTHEADFILENAME = "$CAT_DIR/Software.head.html";
  355.     if (open (SOFTFILE, "> $SOFTFILENAME") && open(SOFTHEADFILE, "> $SOFTHEADFILENAME")) {
  356.         $old = select(SOFTHEADFILE);
  357.         $~ = "SOFTWAREHEAD"; 
  358.         write SOFTHEADFILE;   
  359.         close (SOFTHEADFILE); 
  360.  
  361.         select(SOFTFILE);
  362.         $~ = "CATBEGIN";
  363.         write SOFTFILE;
  364.  
  365.         $Letter = "0";
  366.         foreach $Cat (sort FilteredSort keys(%Categories)) {
  367.             unless ($Categories{$Cat} eq "") {
  368.                 $CatAb = $Categories{$Cat};
  369.                 $CatAb =~ tr/a-z/A-Z/;
  370.                 $CatAb =~ s/^THE //;
  371.                 #print STDOUT "$CatAb, $Letter\n";
  372.                 unless ($CatAb =~ /^$Letter/) {
  373.                     $Letter = substr($CatAb, 0, 1);
  374.                     print SOFTFILE "<DT><A NAME=\"$Letter\"><B>$Letter</B></A>";
  375.                     #push (@Letters, $Letter);
  376.                 }
  377.                 print SOFTFILE "<DD><a href=\"http://localhost:7999/.categories/?DEST=$Cat&SIZE=42\"><B>$Categories{$Cat}</B></a><br>\n";
  378.             }
  379.         }
  380.         $~ = "CATEND";
  381.         write SOFTFILE;
  382.  
  383.         close (SOFTFILE);
  384.         select($old);
  385.     }
  386.     &PrintHtml("<DD>", "\tSoftware.html page created.\n", "<BR>");
  387. }
  388.  
  389. ##############################################################################
  390. # CreateCat: 
  391. ##############################################################################
  392. sub CreateCat
  393. {
  394.  
  395.     foreach $catword  ( sort keys(%Categories)) {
  396.         #chop $catword;
  397.         &PrintHtml("<BR>", "\nCreating $catword category page ...\n", "<BR>");
  398.              $CATFILENAME = "$CAT_DIR/$catword.html";
  399.              $CATHEADFILENAME = "$CAT_DIR/$catword.head.html";
  400.         #print STDOUT "Bef open, $CATFILENAME, $CATHEADFILENAME\n";
  401.         if (open (CATFILE, "> $CATFILENAME") && open(CATHEADFILE, "> $CATHEADFILENAME")) {
  402.             $old = select(CATFILE);
  403.  
  404.             $~ = "CATBEGIN";
  405.             write CATFILE;
  406.             $Letter = "0";
  407.             @Letters = ();
  408.             foreach $ShortName (sort FilteredSortComp keys(%Companies)) {
  409.                 $Comp = $Companies{$ShortName};
  410.                 
  411.                 unless ($ChosenCat{$ShortName} =~ /$catword/ 
  412.                     || $catword eq "companies") {
  413.                     next;
  414.                 }
  415.                 $CompAb = $Comp;
  416.                 $CompAb =~ tr/a-z/A-Z/;
  417.                 $CompAb =~ s/^THE //;
  418.                 unless ($CompAb =~ /^$Letter/) {
  419.                     $Letter = substr($CompAb, 0, 1);
  420.                     print CATFILE "<DT><A NAME=\"$Letter\"><B>$Letter</B></A>";
  421.                     push (@Letters, $Letter);
  422.                 }
  423.  
  424.                     #print CATFILE "     <DD><a HREF=file:///tmp/httpd/.products/$ShortName/$HomePageName{$ShortName}><B>$Comp</B></a> $Description{$ShortName}\n";
  425.                     print CATFILE "     <DD><a HREF=file:///tmp/httpd/.products/$ShortName/$FRAMEBASICNAME><B>$Comp</B></a> $Description{$ShortName}\n";
  426.                                 print "<dd><b><i>", $Products{$ShortName . "1"}, "</i></b>\n" ;                             
  427.                                 if ($Products{$ShortName . "2"} ne "") {
  428.                                         print ", <b><i>", $Products{$ShortName . "2"}, "</i></b>\n" ;
  429.                                 }
  430.                                 if ($Products{$ShortName . "3"} ne "") {
  431.                                         print ", <b><i>", $Products{$ShortName . "3"}, "</i></b>\n" ;
  432.                                 }
  433. #
  434. #        This is for testdrive, install, and demo images
  435. #
  436.                 if ($Platform{$ShortName} =~ /demo/ ) {
  437.                 print CATFILE "<img src=\"../CDware/images/demo.gif\">";
  438.                 }
  439.                                 if ($Platform{$ShortName} =~ /testdrive/ ) { 
  440.                                 print CATFILE "<img src=\"../CDware/images/testdrive.gif\">";
  441.                                 } 
  442.                                 if ($Platform{$ShortName} =~ /install/ ) { 
  443.                 print CATFILE "<img src=\"../CDware/images/install.gif\">";
  444.                                 } 
  445.                 print CATFILE "\n";
  446.  
  447.                 }
  448.          
  449.         
  450.             $~ = "CATEND";
  451.             write CATFILE;
  452.             close (CATFILE);
  453.         
  454.             if ($Special{$catword} eq "") {
  455.                 $AppWidth="596"; 
  456.                  $AppHeight="75";
  457.             } else {
  458.                 @tmp=split(/,/,$Special{$catword});
  459.                                 $AppWidth=@tmp[0]; 
  460.                 $AppHeight=@tmp[1];
  461.             } 
  462.                 
  463.                         #&PrintHtml("<DD>", "\ttest $AppWidth $AppHeight $Special{$catword} $catword\n", "<BR>");
  464.  
  465.             select(CATHEADFILE);
  466.             $~ = "CATHEADERBEGIN";
  467.             write CATHEADFILE;
  468.  
  469.         print CATHEADFILE "<param name=img value=\"$DIR_IMAGES/$GifImage{$catword}\">\n";
  470.         if ($catword ne "companies") {
  471.             print CATHEADFILE "<param name=area1 value=\"HrefButtonArea,27,4,69,40,?DEST=companies\">\n";
  472.         } else {
  473.             print CATHEADFILE "<param name=area1 value=\"HrefButtonArea,27,4,69,40,?DEST=Services\">\n";
  474.         }
  475.         print CATHEADFILE "<param name=area2 value=\"HrefButtonArea,27,36,69,40,?DEST=products\">\n";
  476.         if ($catword ne "Hardware") {
  477.             print CATHEADFILE "<param name=area3 value=\"HrefButtonArea,96,0,69,40,?DEST=Hardware\">\n";
  478.         } else {
  479.             print CATHEADFILE "<param name=area3 value=\"HrefButtonArea,96,0,69,40,?DEST=Software\">\n";
  480.         }
  481.         if ($catword ne "Services" && $catword ne "companies") {
  482.             print CATHEADFILE "<param name=area4 value=\"HrefButtonArea,96,38,69,40,?DEST=Services\">\n";
  483.         } else {
  484.             print CATHEADFILE "<param name=area4 value=\"HrefButtonArea,96,38,69,40,?DEST=Software\">\n";
  485.         }
  486.                 if ($catword eq "Sun") {
  487.                         print CATHEADFILE "<param name=area6 value=\"HrefButtonArea,198,85,168,85,?DEST=Sun_Software&SIZE=60\">\n";            
  488.                         print CATHEADFILE "<param name=area7 value=\"HrefButtonArea,401,86,194,85,?DEST=Sun_Hardware&SIZE=60\">\n";                 
  489.         }
  490.         print CATHEADFILE "<param name=area5 value=\"HrefButtonArea,198,0,398,62,../CDware/index.html\">\n";
  491.  
  492.         $~ = "CATHEADERMIDDLE";
  493.         write CATHEADFILE;
  494.  
  495.                 #print CATHEADFILE `cat $Header{$catword}`;
  496.             unless ($Categories{$catword} eq "") {
  497.                     print CATHEADFILE "<CENTER><FONT SIZE=24>$Categories{$catword}</FONT></CENTER>";
  498.             }
  499.     
  500.             #@Letters = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
  501.             if (@Letters > 1) {
  502.                 print CATHEADFILE "<B>Go to:  ";
  503.                 foreach $letter (@Letters) {
  504.                     print CATHEADFILE "<A HREF=\"?DEST=$catword&L=$letter" . ($Categories{$catword} eq ""? "" : "&SIZE=42") . "\">$letter</A>\n";
  505.                 }
  506.             }
  507.             $~ = "CATHEADEREND";
  508.             write CATHEADFILE;
  509.             close (CATHEADFILE);
  510.      
  511.             &PrintHtml("<DD>", "\t$catword category page created.\n", "<BR>");
  512.  
  513.             select($old);
  514.         } else {
  515.             die "\nERROR: Cannot write $CATFILENAME or $CATHEADFILENAME!\nTry to be superuser!\n\n";
  516.         }
  517.     }
  518. }
  519.  
  520. ##############################################################################
  521. # CreateReport:
  522. ##############################################################################
  523. sub CreateReport
  524. {
  525.     $TotalSize = 0;
  526.     foreach $ShortName (sort FilteredSortComp keys(%Companies)) {
  527.         #$ShortName = $RevComp{$Comp};    
  528.         $Comp = $Companies{$ShortName};
  529.         &PrintHtml("<B>", "$Comp:\n", "</B><BR>");
  530.         &PrintHtml("<DD>", "\tProduct1: " . $Products{$ShortName . "1"} . "\n", "<BR>");
  531.         if ($Products{$ShortName . "2"} ne "") {
  532.             &PrintHtml("<DD>", "\tProduct2: " . $Products{$ShortName . "2"} . "\n", "<BR>");
  533.         }
  534.         if ($Products{$ShortName . "3"} ne "") {
  535.             &PrintHtml("<DD>", "\tProduct3: " . $Products{$ShortName . "3"} . "\n", "<BR>");
  536.         }
  537.         $Size = `du -ks $PRODUCTS_DIR/$ShortName`;
  538.         chop $Size;
  539.         $Size =~ s/(\d*).*/\1/;
  540.         &PrintHtml("<DD>", "\tTotal size: $Size Kb\n", "<BR>");
  541.         $TotalSize += $Size;
  542.         if ( $Platform{$ShortName} =~ /demo|testdrive|install/) {
  543.             &PrintHtml("<DD>", "\t", "");
  544.             if ($Platform{$ShortName} =~ /demo/) {
  545.                 &PrintHtml("", "Slide-show, ", "");
  546.             }
  547.             if ($Platform{$ShortName} =~ /testdrive/) {
  548.                 &PrintHtml("", "Demo version, ", "");
  549.             }
  550.             if ($Platform{$ShortName} =~ /install/) {
  551.                 &PrintHtml("", "Unlockable version, ", "");
  552.             }
  553.             &PrintHtml("", "\n", "<BR>");
  554.         }
  555.     }
  556.     &PrintHtml("<BR><BR>", "\n\nTotal size for all companies: $TotalSize Kb\n", "<BR>");
  557.     $Size = `du -ks $PRODUCTS_DIR/$ShortName`;
  558.     chop $Size;
  559.     $Size =~ s/(\d*).*/\1/;
  560.     &PrintHtml("", "Total size for .products: $Size Kb\n", "<BR>");
  561. }
  562.  
  563. ##############################################################################
  564. # CreateApplet:
  565. ##############################################################################
  566. sub CreateApplet
  567. {
  568.     &PrintHtml("", "\nBuilding Control bar applets ...\n", "<BR>");
  569.     $TmpFile = "/tmp/tmpupdateapplet";
  570.     foreach $Comp (sort keys(%Companies)) {
  571.         $FRAMEFILENAME = "$PRODUCTS_DIR/$Comp/$FRAMEBASICNAME";
  572.         if (open (FRAMEFILE, "> $FRAMEFILENAME")) {
  573.             print FRAMEFILE "<html> <head>\n<title>CDware May 1996: $Companies{$Comp}</title>\n</head>\n<FRAMESET ROWS=\"50,*\">\n<FRAME SCROLLING=\"no\" TARGET=\"_top\" NAME=\"menu\" NORESIZE SRC=\"CDware.head.html\">\n<FRAME SCROLLING=\"yes\" NAME=\"content\" NORESIZE MARGINHEIGHT=4 SRC=\"$HomePageName{$Comp}\">\n</BODY> </NOFRAME> </FRAMESET> </HTML>\n";
  574.             close(FRAMEFILE);
  575.         } else {
  576.             &PrintHtml("", "ERROR: Couldn't write $FRAMEFILENAME\n", "<BR>");
  577.         }
  578.  
  579.         $HEADFILENAME = "$PRODUCTS_DIR/$Comp/$HEADBASICNAME";
  580.         if (open (HEADFILE, "> $HEADFILENAME")) {
  581.             print HEADFILE "<html> <head>\n<title>CDware May 1996</title>\n</head>\n<BODY>\n<CENTER>\n<applet code=ImageMap.class width=596 height=36>\n<param name=highlight value=\"brighter60\">";
  582.             
  583.             $TestGif = 0;
  584.             if ($Platform{$Comp} =~ /demo/) {
  585.                 $TestGif ++;
  586.             }
  587.             if ($Platform{$Comp} =~ /testdrive/) {
  588.                 $TestGif += 2;
  589.             }
  590.             if ($Platform{$Comp} =~ /install/) {
  591.                 $TestGif += 4;
  592.             }
  593.             @BarFileNames = ("none", "rd", "td", "tdrd", "ts", "tsrd", "tdts", "samplebar");
  594.             print HEADFILE "<param name=img value=\"$PRODUCTS_DIR/CDware/images/$BarFileNames[$TestGif].gif\">\n";
  595.  
  596.             print HEADFILE "<param name=area1 value=\"HrefButtonArea,0,0,80,35,file:///tmp/httpd/.products/CDware/index.html\" >\n";
  597.             print HEADFILE "<param name=area2 value=\"HrefButtonArea,81,0,84,35,http://localhost:7999/.categories/?DEST=companies\" >\n";
  598.             print HEADFILE "<param name=area3 value=\"HrefButtonArea,164,0,83,35,file:///tmp/httpd/.products/CDware/docs/info/features.html\" >\n";
  599.             print HEADFILE "<param name=area4 value=\"HrefButtonArea,267,0,85,35,http://localhost:7999/cgi-bin/req_more_info.pl?$Comp\" >\n";
  600.  
  601.             $Area = 5;
  602.             if ($Platform{$Comp} =~ /demo/) {
  603.                 print HEADFILE "<param name=area$Area value=\"HrefButtonArea,350,0,83,35,http://localhost:7999/$Comp/_install/install_show.sh\">\n";
  604.                 $Area ++;
  605.             }
  606.             if ($Platform{$Comp} =~ /testdrive/) {
  607.                 print HEADFILE "<param name=area$Area value=\"HrefButtonArea,434,0,81,35,http://localhost:7999/$Comp/_install/run.sh\">\n";
  608.                 $Area ++;
  609.             }
  610.             if ($Platform{$Comp} =~ /install/) {
  611.                 print HEADFILE "<param name=area$Area value=\"HrefButtonArea,515,0,83,35,http://localhost:7999/$Comp/_install/install.sh\">\n";
  612.             }
  613.             
  614.             print HEADFILE "</applet> </CENTER> </BODY> </HTML>\n";
  615.  
  616.  
  617.             close(HEADFILE);
  618.         } else {
  619.             &PrintHtml("", "ERROR: Couldn't write $HEADFILENAME\n", "<BR>");
  620.         }
  621.  
  622.              #$HOMEFILENAME = "../$Comp/" . $HomePageName{$ShortDir};
  623.         #if (open (HOMEFILE, "$HOMEFILENAME")) {
  624.             #open (TMPFILE, "$TmpFile");
  625.             #while (<TMPFILE>) {
  626.                 #$Line = $_;
  627.                 #if ($Line =~ /^<applet class=cdbar/i) {
  628.                     #while (! <HOMEFILE> =~ /^<\/applet>/i) {
  629.                     #}
  630.                     #$TestGif = 0;
  631.                     #if ($Platform{$Comp} =~ /demo/) {
  632.                         #$TestGif ++;
  633.                     #}
  634.                     #if ($Platform{$Comp} =~ /testdrive/) {
  635.                         #$TestGif ++;
  636.                     #}
  637.                     #if ($Platform{$Comp} =~ /install/) {
  638.                         #$TestGif ++;
  639.                     #}
  640.                     #print TMPFILE "<app class=CDbar img=\"../CDware/images/none.gif";
  641.                     #print TMPFILE "highlight=brighter60";
  642. ##            print "area1=HrefButtonArea,0,0,80,35,file:///tmp/httpd/.products/CDware/index.html" >> applet
  643. ##            print "area2=HrefButtonArea,81,0,84,35,file:///tmp/httpd/.products/.categories/companies.html" >> applet
  644. ##            print "area3=HrefButtonArea,164,0,83,35,file:///tmp/httpd/.products/CDware/docs/info/features.html" >> applet
  645. ##            print "area4=HrefButtonArea,267,0,85,35,file:///tmp/httpd/.products/DEV/disabled.html" >> applet
  646. ##            print ">" >> applet
  647. ##                        breaksw    
  648. ## 
  649.                     #next;
  650.                 #}
  651.                 #print TMPFILE $Line;
  652.             #}
  653.         #}
  654.         #rename($TmpFile, $HOMEFILENAME);
  655.     }
  656.     &PrintHtml("", "\tControl bar applets built...\n", "<BR>");
  657. }
  658. ###############################################################################
  659. ## CreateNames
  660. ###############################################################################
  661. sub CreateNames
  662. {
  663. open (REALNAMES, "> $PRODUCTS_DIR/.bin/real_names.txt");
  664.    write REALNAMES;
  665.     foreach $comp (keys(%Companies)) {
  666.         print REALNAMES "$comp\t$Companies{$comp}\n";
  667.     }
  668. # this is for directories without _info files
  669.    print REALNAMES "SunProducts\tSun Products";
  670. close(REALNAMES);
  671. }
  672.  
  673. ###############################################################################
  674. ## CreateProduct
  675. ###############################################################################
  676. sub CreateProduct
  677. {
  678.     &PrintHtml("<BR>", "\nCreating Products page...\n", "<BR>");
  679.  
  680.          $PRODFILENAME = "$CAT_DIR/products.html";
  681.          $PRODHEADFILENAME = "$CAT_DIR/products.head.html";
  682.     if (open (PRODFILE, "> $PRODFILENAME") && open(PRODHEADFILE, "> $PRODHEADFILENAME")) {
  683.         $old = select(PRODFILE);
  684.  
  685.         $~ = "CATBEGIN";
  686.         write PRODFILE;
  687.         $Letter = "0";
  688.         @Letters = ();
  689.         foreach $Prod (sort FilteredSort keys(%RevProd)) {
  690.             $ShortName = substr($RevProd{$Prod}, 0, length($RevProd{$Prod}) - 1);    
  691.             
  692.             #print STDOUT "        Prod=$Prod, ShortName=$ShortName.\n";
  693.             $ProdAb = $Prod;
  694.             $ProdAb =~ tr/a-z/A-Z/;
  695.             $ProdAb =~ s/^THE //;
  696.             $ProdAb =~ s/^[     ]*//;
  697.             unless ($ProdAb =~ /^$Letter/) {
  698.                 $Letter = substr($ProdAb, 0, 1);
  699.                 print PRODFILE "<DT><A NAME=\"$Letter\"><B>$Letter</B></A>";
  700.                 push (@Letters, $Letter);
  701.             }
  702.  
  703.                 #print PRODFILE "<DD><A HREF=file:///tmp/httpd/.products/$ShortName/$HomePageName{$ShortName}><B>$Prod</B></A> <I>from</I> <B>$Companies{$ShortName}</B>\n";
  704.                 print PRODFILE "<DD><A HREF=file:///tmp/httpd/.products/$ShortName/$FRAMEBASICNAME><B>$Prod</B></A> <I>from</I> <B>$Companies{$ShortName}</B>";
  705. #
  706. #     this is for testdrive, install, demo icons
  707. #
  708.                                 if ($Platform{$ShortName} =~ /demo/ ) {
  709.                                 print PRODFILE "<img src=\"../CDware/images/demo.gif\">";
  710.                                 }
  711.                                 if ($Platform{$ShortName} =~ /testdrive/ ) {
  712.                                 print PRODFILE "<img src=\"../CDware/images/testdrive.gif\">";
  713.                                 }
  714.                                 if ($Platform{$ShortName} =~ /install/ ) {
  715.                                 print PRODFILE "<img src=\"../CDware/images/install.gif\">";
  716.                                 }
  717.                                 print PRODFILE "\n";
  718.  
  719.             }
  720.      
  721.         $~ = "CATEND";
  722.         write PRODFILE;
  723.         close (PRODFILE);
  724.  
  725.         select(PRODHEADFILE);
  726.         $~ = "CATHEADERBEGIN";
  727.         write PRODHEADFILE;
  728.  
  729.         print PRODHEADFILE "<param name=img value=\"$DIR_IMAGES/products.gif\">\n";
  730.         print PRODHEADFILE "<param name=area1 value=\"HrefButtonArea,27,4,69,40,?DEST=companies\">\n";
  731.         print PRODHEADFILE "<param name=area2 value=\"HrefButtonArea,27,36,69,90,?DEST=Services\">\n";
  732.         print PRODHEADFILE "<param name=area3 value=\"HrefButtonArea,96,0,69,40,?DEST=Hardware\">\n";
  733.         print PRODHEADFILE "<param name=area4 value=\"HrefButtonArea,96,38,69,74,?DEST=Software\">\n";
  734.         print PRODHEADFILE "<param name=area5 value=\"HrefButtonArea,200,0,395,74,../CDware/index.html\">\n";
  735.  
  736.         print PRODHEADFILE "</applet><br></td><tr><td><center>";
  737.         #$~ = "CATHEADERMIDDLE";
  738.         #write PRODHEADFILE;
  739.  
  740.             #print PRODHEADFILE `cat $Header{$catword}`;
  741.         #unless ($Categories{$catword} eq "") {
  742.                 #print PRODHEADFILE "<H1>$Categories{$catword}</H1>";
  743.         #}
  744.  
  745.         #@Letters = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
  746.         print PRODHEADFILE "<B><FONT size=\"4\"> Go to:\n";
  747.         foreach $letter (@Letters) {
  748. # below changed by Marc
  749.             #print PRODHEADFILE "<A HREF=\"?DEST=$catword&L=$letter\">$letter</A>\n";
  750.             print PRODHEADFILE "<A HREF=\"?DEST=products&L=$letter\">$letter</A>\n";
  751.         }
  752.         $~ = "CATHEADEREND";
  753.         write PRODHEADFILE;
  754.         close (PRODHEADFILE);
  755.  
  756.         &PrintHtml("<DD>", "\tproducts.html page created.\n", "<BR>");
  757.  
  758.         select($old);
  759.     }
  760. }
  761. ##############################################################################
  762. # MAIN PART: Decode the parameters and calls the correct subfunctions
  763. ##############################################################################
  764. #$arg0=$0
  765. #$DIR=$arg0:h
  766. #$ProgName=$arg0:t
  767.  
  768. #if ("X$DIR" == "X$ProgName") {
  769.     #$DIR='.'
  770. #}
  771.  
  772. #if (-e "./$ProgName") {
  773.     #$DIR=$cwd
  774. #}
  775.  
  776. #cd  $DIR
  777. #print `pwd`;
  778.  
  779. #
  780. # Create the category pages seen in the categories.txt file
  781. #
  782.  
  783. #foreach $en (sort keys %ENV) {
  784.     #print "$en = $ENV{$en}\n";
  785. #}
  786.  
  787.  
  788.     $CATS = "false";
  789.     $APPLETS = "false";
  790.     $COMP = "false";
  791.     $CHECK = "false";
  792.     $REPORT = "false";
  793.     $HTML_FORMAT = "false";
  794.     $PROD = "false";
  795.     $SOFT = "false";
  796.     $PLATFORM = "sparc";
  797.  
  798.     $DIR_IMAGES = "../CDware/images/";
  799.     $PRODUCTS_DIR = "../";
  800.  
  801.     # parse command line arguements
  802.  
  803.     #print "Arg=@ARGV.\n";
  804.     @ARGREPORT = @ARGV;
  805.     if (@ARGV == 0) {
  806.         @ARGV=("-?");
  807.     }
  808.  
  809.         while ($ARGV[0] =~ /^-/) {
  810.             $_ = shift;
  811.             #print "Arg=$_.\n";
  812.             if (/^-cats$/) {
  813.                 $CATS = "true";
  814.             } elsif (/^-applets/) {
  815.                 $APPLETS = "true";
  816.             } elsif (/^-comp/) {
  817.                 $COMP = "true";
  818.             } elsif (/^-checkall/) {
  819.                 $CHECK = "true";
  820.                 $CHECKLINKS = "true";
  821.             } elsif (/^-checklinks/) {
  822.                 $CHECKLINKS = "true";
  823.             } elsif (/^-check/) {
  824.                 $CHECK = "true";
  825.             } elsif (/^-soft/) {
  826.                 $SOFT = "true";
  827.             } elsif (/^-report/) {
  828.                 $REPORT = "true";
  829.             } elsif (/^-html/) {
  830.                 $HTML_FORMAT = "true";
  831.                         } elsif (/^-names/) {
  832.                                 $NAMES = "true";
  833.             } elsif (/^-dir/) {
  834.                 $PRODUCTS_DIR = ($1 ? $1 : shift);
  835.                 unless (-s $PRODUCTS_DIR) {
  836.                     die "ERROR: $PRODUCTS_DIR is not a directory\n";
  837.                 }
  838.             } elsif (/^-prod/) {
  839.                 $PROD = "true";
  840.             } elsif (/^-all/) {
  841.                 $PROD = "true" ;
  842.                 $COMP = "true";
  843.                 $SOFT = "true";
  844.                 $APPLETS = "true";
  845.                 $CATS = "true";
  846.                 $NAMES = "true";
  847.             } elsif (/^-x86/) {
  848.                 $PLATFORM = x86;
  849.                 $SRC_DIR = "../../../x86.image";
  850.             } elsif (/^-[?Hh]/) {
  851.                 die "Usage: update.pl [ -cats | -applets | -soft | -prod | -all | -dir dirname | -x86  | -report | -html | -names | -check]\n\tall: = -cats -prod -applets\n\tapplets: creates an applet in the customer home page.\n\tcats: creates the category and company pages.\n\tcheck: check the _info file, and other things for errors.\n\tdir: gives the directory where the companies are located.\n\thtml: when -report is selected, creates an output in HTML format.\n\tnames: create list of company names keyed on directory name.\n\tprod: creates the product page.\n\treport: creates a report for all companies.\n\tsoft: creates the Software pages\n\tx86: for future usage.\n";
  852.             } else {
  853.                 die "Unrecognized switch: $_ (try -?)\n";
  854.             }
  855.         }
  856.  
  857. &PrintHtml("<HTML> <HEAD> <title>Catalyst CDware - status on " . `date` . "</title> </HEAD> <BODY bgcolor=\"#DDDDDD\"><H1>", "Catalyst CDware - status on " . `date` . "\n", "</H1>");
  858.  
  859.  
  860. # check if root user
  861. if ( $ENV{"USER"} ne "root" ) {
  862.         &PrintHtml("", "WARNING: This program should be run as root user.\n", "<BR>");
  863.     }
  864.  
  865.  
  866.     if ($REPORT ne "true") {
  867.         $HostName = `hostname`;
  868.         chop $HostName;
  869.         &PrintHtml("", "\nUpdating CDware on $HostName:\n\n", "<BR>");
  870.     if (open (REPORTFILE, ">> $PRODUCTS_DIR/.update.txt")) {
  871.         $Date = `date`;
  872.         chop $Date;
  873.         print REPORTFILE "update by " . $ENV{"USER"} . " on $Date from $HostName\n\tparams: ";
  874.         while (@ARGREPORT) {
  875.             print REPORTFILE "$ARGREPORT[0], ";
  876.             shift @ARGREPORT;
  877.         }
  878.         print REPORTFILE "\n\n";
  879.         close (REPORTFILE);
  880.     } else {
  881.         &PrintHtml("", "WARNING: Cannot open $PRODUCTS_DIR/.update.txt\n", "<BR>");
  882.     }
  883. }
  884.  
  885. &InitCompInfo();
  886.  
  887. $CAT_DIR = "$PRODUCTS_DIR/.categories";
  888. $FRAMEBASICNAME = "CDware.frame.html";
  889. $HEADBASICNAME = "CDware.head.html";
  890. #print $CAT_DIR;
  891. if ( ! -d $CAT_DIR ) {
  892.     mkdir($CAT_DIR, 0777);
  893. }
  894.  
  895. if ( $CHECK eq "true" ) {
  896.     &CheckFiles();
  897. }
  898. if ( $NAMES eq "true" ) {
  899.         &CreateNames();  
  900. }
  901.  
  902.  
  903. if ( $CHECKLINKS eq "true" ) {
  904.     &CheckLinks();
  905. }
  906.  
  907. if ( $CATS eq "true" ) {
  908.     &CreateCat();
  909. }
  910.  
  911. if ( $SOFT eq "true" ) {
  912.     &CreateSoft();
  913. }
  914.  
  915. #
  916. # Get all CDware menu bar components and put in file 
  917. # for building of front page applet 
  918. #
  919. if ( $APPLETS eq "true" ) {
  920.     &CreateApplet();
  921. }
  922.  
  923. if ( $PROD eq "true" ) {
  924.     &CreateProduct();
  925. }
  926.  
  927. if ( $REPORT eq "true" ) {
  928.     &CreateReport();
  929. }
  930.  
  931. #
  932. # Compile list of companies, place in 'companies' file
  933. #
  934. #if ( $COMP eq "true" ) {
  935.     #&CreateComp();
  936. #}
  937.  
  938. #
  939. # Compile list of products, place in 'products' file
  940. #
  941.  
  942. #print "\n\n\nPress <RETURN> to close the window and test your submission..\n.";
  943. #read answer;
  944.  
  945. ################################################################################
  946. # Define FORMATS (no more code)
  947. ################################################################################
  948. format CATHEADERBEGIN =
  949. <html>
  950. <body  BGCOLOR="#8c8cde" link=#33ff00 vlink=#33ff00 >
  951. <BASE TARGET="_top" HREF="http://localhost:7999/.categories/">
  952. <center>
  953. <form method="get"  ACTION="http://localhost:7999/cgi-bin/brandnewwais.pl/wais_CDware">
  954. <table border = 3><td>
  955. <applet code=ImageMap.class width=@*
  956. $AppWidth
  957.  height=@*
  958. $AppHeight
  959. >
  960. <param name=highlight value="brighter60">
  961. .
  962.  
  963. format CATHEADERMIDDLE =
  964. </applet><br></td><tr><td><center>
  965. <B><FONT size="4">
  966. #<B>Go to:  </b>
  967. .
  968.  
  969. format CATHEADEREND =
  970. <br> Search: <input type="text" name="isindex" size="12" >
  971. </font>
  972. </td><tr></table>
  973. </form>
  974. </center>
  975. </body>
  976. </html>
  977. .
  978.  
  979. format CATBEGIN =
  980. <HTML>
  981.         <!-- header section-->
  982. <HEAD>
  983. <title>Catalyst CDware - SPARC Edition - January through April</title>
  984. </HEAD>
  985.         <!-- document body-->
  986. <BODY bgcolor="#DDDDDD">
  987. <BASE TARGET="_top">
  988. <DL>
  989. #<hr>
  990. #<p>
  991. .
  992.  
  993. format CATEND =
  994. </B></B><DT>
  995. <hr>
  996. </BODY>
  997. </HTML>
  998. .
  999.  
  1000. format SOFTWAREHEAD =
  1001. <HTML>
  1002.         <!-- header section-->
  1003. <HEAD>
  1004. <TITLE>Catalyst CDware - Software Categories</TITLE>
  1005. </HEAD>
  1006.         <!-- document body-->
  1007. <BODY BGCOLOR="8c8cde" link=#33ff00 vlink=#33ff00>
  1008. <CENTER>
  1009. <BASE TARGET="_top" HREF="http://localhost:7999/.categories/">
  1010. <form method="get"  ACTION="http://localhost:7999/cgi-bin/brandnewwais.pl/wais_CDware">
  1011. <table border = 3><td>
  1012. <applet code=ImageMap.class width=596 height=75>
  1013. <param name=highlight value="brighter60">
  1014. <param name=img value="../CDware/images/software.gif">
  1015. <param name=area1 value="HrefButtonArea,27,4,69,40,../.categories/?DEST=companies">
  1016. <param name=area2 value="HrefButtonArea,27,36,69,90,../.categories/?DEST=products">
  1017. <param name=area3 value="HrefButtonArea,96,0,69,40,../.categories/?DEST=Hardware">
  1018. <param name=area4 value="HrefButtonArea,96,38,69,74,../.categories/?DEST=Services">
  1019. <param name=area5 value="HrefButtonArea,200,0,395,74,../CDware/index.html">
  1020. </applet>
  1021. </TD><TR><TD>
  1022. <CENTER>
  1023. <FONT size="4">
  1024. <br>Search: <input type="text" name="isindex" size="12" >
  1025. </font>
  1026. </CENTER>
  1027. </td><tr></table>
  1028. </CENTER>
  1029. </form>
  1030. </BODY>
  1031. </HTML>
  1032. .
  1033. ##############################################################################
  1034. format FRAMEHEADER =
  1035. Content-type: text/html
  1036.  
  1037.  
  1038.  
  1039. <html>
  1040. <head>
  1041. <title>CDware May 1996</title>
  1042. </head>
  1043. <FRAMESET ROWS="20,80">
  1044. #$size
  1045. .
  1046. ##############################################################################
  1047. format FRAMEFOOTER =
  1048. <BODY BACKGROUND="icons/bkgrnds/homebg.gif" body bgcolor=black text=#ffffff link=#dddddd alink=#ffff00 vlink=#bbbbbb>
  1049.  
  1050. <FONT SIZE=-1>Copyright \0511995 <B><A
  1051.  
  1052. </BODY>
  1053. </NOFRAME>
  1054. </FRAMESET>
  1055. </HTML>
  1056. .
  1057.